import {initRequest, myRequest} from "../../api/myRequest";
const _GetBatchNo = 'getBatchNo';
const _GetCurrentVal = 'getCurrentVal';
const _GetNextVal = 'getNextVal';
const Common ={
	/**
	 * 获取批次号
	 * @param key  1、WC 碳化钨，2、W 钨粉
	 * @returns {Promise<*>}
	 */
	getBatchNo(key) {
		return myRequest(_GetBatchNo,{key:key});
	},

	/**
	 * 获取当前批次号
	 * @param name
	 * @returns {Promise<*>}
	 */
	getCurrentVal(name) {
		return myRequest(_GetCurrentVal,{name:name});
	},
	/**
	 * 获取下个批次号
	 * @param name
	 * @returns {Promise<*>}
	 */
	getNextVal(name) {
		return myRequest(_GetNextVal,{name:name});
	},
}

export default Common;
